package com.sinocare.project.common.result;

import lombok.Getter;

@Getter
public enum ResultCode{
    //定义
    SUCCESS("0", "成功"),
    FAIL("201", "失败"),
    VALUE_NULL("300", "值为空"),
    PARAM_NULL("301", "参数为空，处理异常"),
    SIGN_ERROR("400", "请求的数据格式不符!"),
    NO_LOGIN("401", "请求的数字签名不匹配!"),
    NOT_FOUND("404", "未找到该资源!"),
    SYS_ERROR("500", "服务器内部错误!"),
    SERVER_BUSY("503","服务器正忙，请稍后再试!");
    //属性
    private String code;
    private String message;

    //构造方法(必须)
    private ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
